How do I iterate over every character in a string and multiply it with the place in its string